"""
1 * 1 = 1
1 * 2 = 2   2 * 2 = 4
1 * 3 = 3   2 * 3 = 6   3 * 3 = 9
....
"""
# print('1 * 1 = 1', end="\t")
# print()
# print('1 * 2 = 2', end="\t")
# print('2 * 2 = 4', end="\t")
# print()
# print('1 * 3 = 3', end="\t")
# print('2 * 3 = 6', end="\t")
# print('3 * 3 = 9', end="\t")

for i in range(9):  # 控制行
    for j in range(9):  # 控制行中的列
        print("*", end="\t")
    print()  # 换行

for i in range(1, 10):  # 控制行
    for j in range(1, i + 1):  # 控制行中的列
        print(j, end="\t")
    print()  # 换行

for i in range(1, 10):  # 控制行
    for j in range(1, i + 1):  # 控制行中的列
        print("{} * {} = {}", end="\t")
    print()  # 换行

for i in range(1, 10):  # 控制行
    for j in range(1, i + 1):  # 控制行中的列
        print(f"{j} * {i} = {j*i}", end="\t")
    print()  # 换行
